﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DomainExample.Extensions.Tests
{
    [TestClass]
    public sealed class StringExtentionsIsNullOrEmptyTests
    {
        [TestMethod]
        public void StringIsNullOrEmptyWithNonEmptyStringExpectFalse()
        {
            const string inputString = "x";
            var result = inputString.IsNullOrEmpty();
            Assert.IsFalse(result);
        }

        [TestMethod]
        public void StringIsNullOrEmptyWithEmptyStringExpectTrue()
        {
            const string inputString = "";
            var result = inputString.IsNullOrEmpty();
            Assert.IsTrue(result);
        }

        [TestMethod]
        public void StringIsNullOrEmptyWithNullStringExpectTrue()
        {
            const string inputString = null;
            var result = inputString.IsNullOrEmpty();
            Assert.IsTrue(result);
        }
    }
}
